﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NFine.Domain.Entity.BusinessManage
{
    public class D_SalaryHistoryEntity
    {
        public D_SalaryHistoryEntity() { }
        public D_SalaryHistoryEntity(string _ID, string _UserID, string _ChangeType, decimal _ChangeAmount, SystemManage.Trigger trigger, D_SalaryAccountType _AccountType,string _Remark="")
        {
            ID = _ID;
            UserID = _UserID;
            ChangeType = _ChangeType;
            ChangeAmount = _ChangeAmount;
            TriggerUserID = trigger.UserID;
            TriggerTime = trigger.Time;
            AccountType = (int)_AccountType;
            Remark = _Remark;
        }
        

        public string ID { get; set; }
        public string UserID { get; set; }
        public string ChangeType { get; set; }
        public decimal ChangeAmount { get; set; }
        public string TriggerUserID { get; set; }
        public DateTime TriggerTime { get; set; }

        public int AccountType { get; set; }

        public string Remark { get; set; }


        [NotMapped]
        public string Account { get; set; }
        [NotMapped]
        public string AccountName { get; set; }
        [NotMapped]
        public string TAccount { get; set; }
        [NotMapped]
        public string TAccountName { get; set; }
    }
}
